	import flash.filesystem.File;
	import mx.events.FileEvent;
	
	private var fileObj:File = File.documentsDirectory;
	[Bindable]
	private var fileToPlay:String;
	[Bindable]
	private var vidFileName:String;
		
	private function getOsFile():void {
	fileObj.browseForOpen("Select an FLV video file");
	fileObj.addEventListener(Event.SELECT, playFile);
	}	

	private function playFile(event:Event):void {
	fileToPlay = fileObj.url;
	vidFileName = "Now Playing: " + fileObj.name;
	videoPlayer.play();
	}
	
	private function stopVideo():void {
	videoPlayer.stop();
	vidName.visible=false;
	}